﻿using Microsoft.Maps.MapControl;


namespace BuildARoute.Models
{
    public class MapInfo : ViewModelBase
    {
        private const string _ID = "AkrjOpmau1l3sOqwlGgsSYhJ0f9hmRMtD_kCL0LvHvulvd96ViYeGGz63n2g3D97";
        public string ID
        {
            get
            {
                return _ID;
            }
        }
        private ApplicationIdCredentialsProvider _credentialsProvider = new ApplicationIdCredentialsProvider(_ID);
        public ApplicationIdCredentialsProvider CP
        {
            get
            {
                return _credentialsProvider;
            }
        }

        public Credentials AppCredentials
        {
            get
            {
                Credentials credentials = new Credentials();
                CP.GetCredentials(c => credentials = c);
                return credentials;
            }
        }
    }
}
